package com.bestcem.xm.txtanls.controller.param.analysis;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 文本分析项目训练字段入参校验
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v2.0
 * @date 2021/5/10-17:59
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
public class FieldParam {

    /**
     * 训练字段id
     */
    @ApiModelProperty(value = "训练字段id;  24位的Objectid", required = true)
    @JsonProperty(value = "id")
    @NotBlank(message = "训练字段id不能为空")
    private String id;

    /**
     * 训练字段名
     */
    @ApiModelProperty(value = "训练字段名;  训练字段id对字段名称", required = true)
    @JsonProperty(value = "value")
    @NotBlank(message = "训练字段名不能为空")
    private String value;
}
